<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
<script>
    var a = [1, 2, 3,5],
        b = [1];
    var difference = a.filter(function (v) {
        return b.indexOf(v) === -1
    }); // [1,3,4,5]
    console.log(difference);//
</script>
</body>
</html>